package com.corpgovernment.supplier.entity.db;

import com.corpgovernment.common.entity.db.BaseEntity;
import lombok.Data;

import javax.persistence.Table;
import javax.persistence.Transient;


/**
 *
 **/
@Data
@Table(name = "at_user_login")
public class AtUserLogin extends BaseEntity {

    /**
     * 供应商code
     **/
    private String supplierCode;

    /**
     * 用户id
     **/
    private String userId;

    /**
     * 用户名
     **/
    private String userName;

    /**
     * 手机号
     **/
    private String phoneNum;

    /**
     * 密码
     **/
    private String pwd;

    /**
     * 状态
     **/
    private Integer status;
    /**
     * 地区码
     */
    private String countryCode;
    /**
     * 是否服务商管理员管理员
     */
    private Boolean isAdmin;

    @Transient
    private String msgCode;

    private Boolean isDeleted;

    public AtUserLogin() {
        isAdmin = false;
    }

    public AtUserLogin(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public AtUserLogin(String supplierCode, String userId) {
        this.supplierCode = supplierCode;
        this.userId = userId;
    }
}
